package cn.com.api.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.com.api.entity.ApiGoodsActType;
import cn.com.api.entity.ApiGoodsActTypeRes;

//DAO
public interface ApiGoodsActTypeMapper {

	public void insert(ApiGoodsActType actType);
	
	public void update(ApiGoodsActType actType);
	
	public List<Map<String,String>> actTypeList(@Param("cityid")String cityid,@Param("enable")String enable);
	
	public void deleteById(@Param("id")String id);
	
	public List<Map<String,String>> goodsActByCity(@Param("cityid")String cityid);
	
	//public List<Map<String,String>> goodsActInfo(@Param("typeid")String typeid,@Param("cityid")String cityid,@Param("createtime")String createtime);
	
	public List<ApiGoodsActTypeRes> goodsActInfo(@Param("typeid")String typeid,@Param("cityid")String cityid,@Param("createtime")String createtime);
	
}
